import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '题目id',
    align: "center",
    dataIndex: 'questionId'
  },
  {
    title: '考试id',
    align: "center",
    dataIndex: 'examId'
  },
  {
    title: '试卷id',
    align: "center",
    dataIndex: 'paperId'
  },
  {
    title: '答卷id',
    align: "center",
    dataIndex: 'examPaperAnswerId'
  },
  {
    title: '题目类型',
    align: "center",
    dataIndex: 'questionType'
  },
  {
    title: '科目id',
    align: "center",
    dataIndex: 'subjectId'
  },
  {
    title: '用户得分',
    align: "center",
    dataIndex: 'customerScore'
  },
  {
    title: '问题总分',
    align: "center",
    dataIndex: 'questionScore'
  },
  {
    title: '题目内容id',
    align: "center",
    dataIndex: 'questionTextContentId'
  },
  {
    title: '答案',
    align: "center",
    dataIndex: 'answer'
  },
  {
    title: '答题内容id（填空简答）',
    align: "center",
    dataIndex: 'textContentId'
  },
  {
    title: '是否做对',
    align: "center",
    dataIndex: 'doRight'
  },
  {
    title: '回答用户',
    align: "center",
    dataIndex: 'createUser'
  },
  {
    title: '答题顺序',
    align: "center",
    dataIndex: 'itemOrder'
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '题目id',
    field: 'questionId',
    component: 'InputNumber',
  },
  {
    label: '考试id',
    field: 'examId',
    component: 'Input',
  },
  {
    label: '试卷id',
    field: 'paperId',
    component: 'Input',
  },
  {
    label: '答卷id',
    field: 'examPaperAnswerId',
    component: 'Input',
  },
  {
    label: '题目类型',
    field: 'questionType',
    component: 'InputNumber',
  },
  {
    label: '科目id',
    field: 'subjectId',
    component: 'InputNumber',
  },
  {
    label: '用户得分',
    field: 'customerScore',
    component: 'InputNumber',
  },
  {
    label: '问题总分',
    field: 'questionScore',
    component: 'InputNumber',
  },
  {
    label: '题目内容id',
    field: 'questionTextContentId',
    component: 'InputNumber',
  },
  {
    label: '答案',
    field: 'answer',
    component: 'Input',
  },
  {
    label: '答题内容id（填空简答）',
    field: 'textContentId',
    component: 'InputNumber',
  },
  {
    label: '是否做对',
    field: 'doRight',
    component: 'Input',
  },
  {
    label: '回答用户',
    field: 'createUser',
    component: 'Input',
  },
  {
    label: '答题顺序',
    field: 'itemOrder',
    component: 'InputNumber',
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
